package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type UniversityStudentScoreRouter struct {}

// InitUniversityStudentScoreRouter 初始化 学成绩 路由信息
func (s *UniversityStudentScoreRouter) InitUniversityStudentScoreRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	USSRouter := Router.Group("USS").Use(middleware.OperationRecord())
	USSRouterWithoutRecord := Router.Group("USS")
	USSRouterWithoutAuth := PublicRouter.Group("USS")
	{
		USSRouter.POST("createUniversityStudentScore", USSApi.CreateUniversityStudentScore)   // 新建学成绩
		USSRouter.DELETE("deleteUniversityStudentScore", USSApi.DeleteUniversityStudentScore) // 删除学成绩
		USSRouter.DELETE("deleteUniversityStudentScoreByIds", USSApi.DeleteUniversityStudentScoreByIds) // 批量删除学成绩
		USSRouter.PUT("updateUniversityStudentScore", USSApi.UpdateUniversityStudentScore)    // 更新学成绩
	}
	{
		USSRouterWithoutRecord.GET("findUniversityStudentScore", USSApi.FindUniversityStudentScore)        // 根据ID获取学成绩
		USSRouterWithoutRecord.GET("getUniversityStudentScoreList", USSApi.GetUniversityStudentScoreList)  // 获取学成绩列表
	}
	{
	    USSRouterWithoutAuth.GET("getUniversityStudentScorePublic", USSApi.GetUniversityStudentScorePublic)  // 学成绩开放接口
	}
}
